package yz.cp.back.s.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import yz.cp.back.base.AuditEntity;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author jobob
 * @since 2019-04-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_permission")
public class SysPermission extends AuditEntity {



    private String description;

    private String name;

    private String parentId;

    private Integer type;

    private BigDecimal sortOrder;

    private String component;

    private String path;

    private String title;

    private String icon;

    private Integer level;

    private String buttonType;

    private Integer status;

    private String url;
    @TableField(exist = false)
    private List<SysPermission> children;
    @TableField(exist = false)
    private List<String> permTypes;

    @TableField(exist=false)
    private Boolean expand = true;

    @TableField(exist=false)
    private Boolean checked = false;

    @TableField(exist=false)
    private Boolean selected = false;
}
